package com.qingchunlin.blogsystem.entity;

import com.qingchunlin.blogsystem.common.utils.DateUtils;
import lombok.Data;

import java.util.Date;

@Data
public class Blog {
    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    private Boolean deleteFlag;
    private Date createTime;
    private Date updateTime;

    public String getCreateTime() {
        return DateUtils.formatDate(createTime);
    }

    public String getUpdateTime() {
        return DateUtils.formatDate(updateTime);
    }
}
